package com.lyy.photovoltaic.service;

import com.lyy.photovoltaic.beans.Equipments;
import com.lyy.photovoltaic.common.vo.ResultVO;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Service;

import java.util.List;

public interface EquipmentsService {
    //分页查询设备信息
    public ResultVO findEquipmentsByPages();
    //新增设备
    public ResultVO addEquipment(String eId,Equipments equipment);
    //查看单个设备
    public ResultVO getEquipment(String eId);
    //批量查询设备信息
    public ResultVO findEquipmentsList(String[] strings);
    //查看所有设备
    public ResultVO findAllEquipments();
    //根据设备编号删除设备
    public ResultVO deleteEquipments(String eId);
    //更新设备
    public ResultVO updateEquipment(Equipments equipment);
    //根据种类查看设备
    public ResultVO findEquipmentByCategory(String categoryId);
    //首页搜索，根据搜索条件查找相关商品
    public ResultVO findEquipmentsByExample(String input);
    //首页通过点击获取设备名，根据名字返回设备信息
    public ResultVO findEquipmentsByName(String name);
    //首页点击图片跳转详情页面，根据图片url返回详细设备详细
    public ResultVO findEquipmentsByImageUrl(String imageUrl);

    //首页获取热门商品
    public ResultVO hotEquipmentsList(int pageNum);
    //首页获取商品信息
    public ResultVO indexEquipmentsList();
    //首页获取商品信息
    public ResultVO transformerEquipmentsList();

}

//    List<Equipments> findEquipmentsList(@Param("strings") String[] strings);
